package com.wind.taobao.api.trade.trade.rest
{
	import com.wind.taobao.api.IPrivateAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;
	import com.wind.taobao.core.webservice.TaobaoRequest;

	/**
	 * taobao.refund.get Request
	 * @author fxy
	 *
	 */
	public class RefundGetRequest extends TaobaoRequest implements IPrivateAPI
	{
		public override function get method():String
		{
			return "taobao.refund.get"
		}
		/**
		 * Y 	 需要返回的字段。目前支持有：refund_id,alipay_no,tid,oid,buyer_nick,seller_nick,total_fee,status,created,refund_fee,good_status,has_good_return,payment,reason,desc,iid,title,price,num,good_return_time,company_name,sid,address
		 */
		[Bindable]
		public var fields:String="refund_id,alipay_no,tid,oid,buyer_nick,seller_nick,total_fee,status,created,refund_fee,good_status,has_good_return,payment,reason,desc,iid,title,price,num,good_return_time,company_name,sid,address";
		/**
		 * Y 	退款单号
		 */
		[Bindable]
		public var refund_id:String;

		public override function validate():void
		{
			if (!TaobaoUtils.hasAllValue([fields, refund_id]))
			{
				throw new InvalidRequestParametersException("请求参数[fields,refund_id]不能为空");
			}
		}
	}
}